﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<GabageFactory.Models.Stack>" %>
<%@ Import Namespace="System.Collections.Generic" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	创建堆场
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="dolphincontainer">
	    <div id="dolphinnav">
	        <ul>
	            <li><a href="/Stack/Index"><span>堆场管理</span></a></li>
                <li><a href="javascript:return(false);" class="current"><span>创建堆场</span></a></li>
	        </ul>
	    </div>
	</div>

    <% using (Html.BeginForm("Create", "Stack", FormMethod.Post, new { enctype = "multipart/form-data" }))
       {%>
        <%= Html.ValidationSummary(true) %>
        <%= Html.HiddenFor(model => model.Id) %>
            
    <table class="tableCss" cellspacing="0" cellpadding="0" align="center" border="0" style="margin-top:10px">
        <tr>
            <th colspan="2" class="heightrow" align="left" style="padding:10px">
                堆场信息
            </th>
        </tr>
        <tr>
            <td class="row1" align="right" width="100px">所属公司:</td>
            <td class="row1" align="left">
                <%= Html.DropDownList("FactoryId", ViewData["factories"] as List<SelectListItem>, "请选择公司")%>
                <%= Html.ValidationMessageFor(model => model.FactoryId) %>
            </td>
        </tr>
        <tr>
           <td class="row1" align="right">堆场名称:</td>
           <td class="row1" align="left">
                <%= Html.TextBoxFor(model => model.Name) %>
                <%= Html.ValidationMessageFor(model => model.Name) %>
           </td>
        </tr>
        <tr>
           <td class="row1" align="right">堆场位置:</td>
           <td class="row1" align="left">
                <%= Html.TextBoxFor(model => model.Address) %>
                <%= Html.ValidationMessageFor(model => model.Address) %>
           </td>
        </tr>
        <tr>
            <td class="row1" align="right">地理坐标:</td>
            <td class="row1" align="left">
                <%= Html.TextBoxFor(model => model.GeoPosition) %>
                <%= Html.ValidationMessageFor(model => model.GeoPosition) %>
            </td>
        </tr>
        <tr>
            <td  class="row1" align="right">堆场描述:</td>
            <td  class="row1" align="left">
                <%= Html.TextAreaFor(model => model.Description, new { cols = "80" , rows = "10" })%>
                <%= Html.ValidationMessageFor(model => model.Description) %>
            </td>
        </tr>
        <tr>
            <td  class="row1" align="right">堆场总图:</td>
            <td  class="row1" align="left"><input type="file" id="SummaryPic" name="fileSummaryPic" /></td>
        </tr>
        <tr>
            <td  class="row1" align="right">进浆点图:</td>
            <td  class="row1" align="left"><input type="file" id="FlowInPic" name="fileFlowInPic" /></td>
        </tr>
        <tr>
            <td  class="row1" align="right">图片一:</td>
            <td  class="row1" align="left"><input type="file" id="Pic1" name="filePic1" /></td>
        </tr>
        <tr>
            <td  class="row1" align="right">图片二:</td>
            <td  class="row1" align="left"><input type="file" id="Pic2" name="filePic2" /></td>
        </tr>
        <tr>
            <td  class="row1" align="right">图片三:</td>
            <td  class="row1" align="left"><input type="file" id="Pic3" name="filePic3" /></td>
        </tr>
    </table>

    <table class="tableCss" cellspacing="0" cellpadding="0" align="center" border="0" style="margin-top:25px">
        <tr>
            <th colspan="2" class="heightrow" align="left" style="padding:10px">
                运营信息
            </th>
        </tr>
        <tr>
            <td class="row1" align="right" style="width:100px">使用年限:</td>
            <td class="row1" align="left"> 
                <%= Html.TextBoxFor(model => model.LifeTime, new { style = "width:50px" })%>年
                <%= Html.ValidationMessageFor(model => model.LifeTime) %>
            </td>
        </tr>
        <tr>
            <td class="row1" align="right">开始运营时间:</td>
            <td class="row1" align="left">
                    <%= Html.TextBoxFor(model => model.BeginYear, new { style = "width:50px" })%>年<%= Html.TextBoxFor(model => model.BeginMonth, new { style = "width:50px" })%>月
                    <%= Html.ValidationMessageFor(model => model.BeginYear) %>
                    <%= Html.ValidationMessageFor(model => model.BeginMonth) %>
            </td>
        </tr>
    </table>
    
    <div style="margin-top:25px;text-align:center">
        <input type="submit" value="提    交" style="font-size:16px;font-weight:bold" />
    </div>
    <% } %>
</asp:Content>